package com.server.webservice;

import com.server.bean.Doc;
import com.server.bean.File;
import com.server.mapper.DocMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.jws.WebService;
import java.util.List;



@WebService(
        name = "testWebService",
        targetNamespace = "http://webservice.server.com/",
        endpointInterface = "com.server.webservice.WebService_"
)
@Service
public class WebServiceImpl implements WebService_ {
    @Resource
    DocMapper docMapper;

//    @Override
//    public String welcome(String param1, String param2, String param3) {
//        return "访问成功，返回信息---->" + "param1：" + param1 + "  ; param2：" + param2 + "  ; param3：" + param3;
//    }

    @Override
    public List<Doc> docs(String user) {
        return docMapper.doclist(user);
    }

    @Override
    public List<File> files() {
        return docMapper.filelist();
    }

}